package com.yubest.customserializer.enums;

import com.yubest.customserializer.anno.TypeText;
import lombok.AllArgsConstructor;

/**
 * @Author hweiyu
 * @Description
 * @Date 2022/9/7 10:37
 */
@AllArgsConstructor
public enum StatusEnum implements TypeText<Integer, String> {

    NORMAL(1, "正常"),

    DISABLE(2, "禁用"),

    ;

    private final int type;

    private final String text;

    @Override
    public Integer getType() {
        return type;
    }

    @Override
    public String getText() {
        return text;
    }
}
